
#pragma strict

var target : Transform;
var smoothTime = 0.3;
private var thisTransform : Transform;
private var velocity : Vector2;
var Height = 30f;

function Start()
{
	thisTransform = transform;
}

function Update() 
{

	thisTransform.position.x = Mathf.SmoothDamp( thisTransform.position.x, 
		target.position.x, velocity.x, smoothTime);
		
	thisTransform.position.z = Mathf.SmoothDamp( thisTransform.position.z, 
		 target.position.z	, velocity.y, smoothTime);
		 
	thisTransform.position.y = target.position.y + Height;
	
}
